const state = {
  count: 1
}

const mutations = {
  addCount(state) {
    state.count++
  },
  minusCount(state) {
    state.count--
  }
}

const actions = {
  addCount({
    commit
  }) {
    commit('addCount')
  },
  minusCount({
    commit
  }) {
    commit('minusCount')
  }
}

export default {
  state,
  actions,
  mutations
}
